package start.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;
import start.entity.UserDto;

import javax.annotation.Resource;

@Slf4j
@Service
//CacheConfig(cacheNames = {"userDto"})
public class RedisT01Service {

    @Resource
    private RedisTemplate<String, Object> redisTemplate;

    @Autowired
    private TestService<UserDto> testServiceTmp;

    //@Cacheable
    public void test(){

        log.info(redisTemplate.toString());

        testServiceTmp.execute(new UserDto());

    }


}
